home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.97 < prev    next >
Text File  |  1992-02-06  |  3KB  |  49 lines

  1. {\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f0\fswiss Helvetica;}
  2. \paperw13040
  3. \paperh10200
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f2\b0\i0\ul0\fs28 appkit icon workspace launch\
  8. \
  9. Q:  How do I specify an icon for my application?  Or for the types of files it uses?  How do I get my application to be launched by the Workspace Manager?\
  10. \
  11. A:  You need to create the TIFF files and then add them as Project Attributes in IB.  Here are the steps:\
  12. \
  13. (1)  Make 
  14. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 TIFF
  15. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600  files for your icons.  You might want two pictures: one for the application itself, and another for files "belonging" to that application.  (For example, WriteNow files ending in ".wn" have their own icon.)  \
  16.  
  17. \b In 1.0:
  18. \b0   The icon size must be 48 x 48 pixels.  The format is 2 bits per pixel data, 2 bits per pixel alpha, planar configuration of 2.  You can create such a file with the program Icon which lives in /NextDeveloper/Demos.  Be sure to save the picture as a TIFF file, with alpha.  If you check the size of the file, it should be 1292 bytes.\
  19.  
  20. \b In 2.0:
  21. \b0   The icon images aren't so strict in 2.0; they may be any depth and the TIFF file can contain multiple images, allowing it to store the look of the icon for different frame buffers.  It's recommended that you use a 48x48 grayscale image, 2 bits per channel, with alpha, and, if your app makes use of color, a 48x48 RGB image at 4 bits per channel, with alpha.  Combine the two images with tiffutil, a command line program.\
  22. \
  23. (2)  Use the Inspector panel in IB to modify the Project Attributes of your application.  Use the Set button to select the icon you want.  Be sure to add the extension for your documents, 
  24. \i without the period
  25. \i0 .  (If you do include the period, IB will accept it and compile without complaint, but the extension won't work properly—your documents won't show the specified icon.)   Be sure to save your project, then recompile.\
  26. \
  27. (3)  
  28. \b In 1.0: 
  29. \b0  The icon will only show up if your application is now moved to one of the Apps directories in your Workspace ApplicationPaths.  Usually these directories are  /NextApps (read-only, so don't use this),  /LocalApps, or your home ~/Apps.  So move the executable to one of those locations.  (For more information about changing the default ApplicationPaths, see NextAnswers workspace.309.)\
  30.  
  31. \b In 2.0:
  32. \b0   You do not need to put the executable in your path for Workspace to display the app icon; you only need to do that if the app opens documents which you'd like to be able to double-click on.\
  33. \
  34. (4)  
  35. \b In 1.0:
  36. \b0   Finally, the Workspace Manager must learn about this information before your files show up with the right icons.   Choose Find Applications from the Utilities menu of the Workspace Manager.  Then revisit your file.  If the icon doesn't show up, see NextAnswers workspace.480 for trouble-shooting advice. \
  37.  
  38. \b In 2.0:
  39. \b0   The Find Applications command doesn't exist in 2.0 Workspace (it is handled automagically). \
  40. \
  41. If you're using a file package for your application(known colloquially as an "app wrapper"), see NextAnswers workspace.301.\
  42. \
  43. QA97\
  44. \
  45. Valid for 1.0\
  46. Valid for 2.0 (with the differences noted in bold)\
  47. \
  48.  
  49.